package com.lywtimer.springdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class HelloController {
    public HelloController() {
        System.out.println("test lazy loading");
    }

    @RequestMapping("/hello")
    public String hello(){
        return "hello world 我是中国人";
    }
}
